package cn.jcby.app.lebu.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author: lihaotian
 * @since: 2023/12/14 01:30
 * @description
 **/
@Data
@ApiModel(value = "添加个人运动请求实体", description = "添加个人运动请求实体")
public class AddPersonMotionReq {

    @ApiModelProperty("类型字典：跑步、健行、骑行")
    @NotBlank(message = "运动类型不能为空")
    private String motionType;
    @ApiModelProperty("开始位置名称")
    private String beginLocation ;
    @ApiModelProperty("开始坐标：POINT(经度 纬度)")
    @NotBlank(message = "开始坐标不能为空")
    private String beginLocationPoint;
    @ApiModelProperty("结束位置名称")
    private String endLocation;
    @ApiModelProperty("结束坐标：POINT(经度 纬度)")
    private String endLocationPoint;

    @ApiModelProperty("路线：")
    //@NotBlank(message = "路线不能为空")
    private String route;

    @ApiModelProperty("计划全程距离:单位米")
    @NotNull(message = "计划全程距离不能为空")
    private BigDecimal planWholeCourse;
}
